package com.bk.bands.template;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

import com.bk.bands.model.Band;
import com.bk.bands.model.Field;


@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
@XmlType(name = "band", namespace = "http://com.bk.docs", propOrder = {
   "fields"
})
public class XmlBand
{
   private Band band;

   protected XmlFields fields;

   public XmlBand()
   {
      band = new Band();
   }

   @XmlAttribute(required = true)
   public String getName()
   {
      return band.getName();
   }

   public void setName(String name)
   {
      band.setName(name);
   }

   @XmlElement(namespace = "http://com.bk.docs", required = true, nillable = false, name="fields")
   public XmlFields getFields()
   {
      return fields;
   }

   public void setFields(XmlFields fields)
   {
      this.fields = fields;
      this.band.setFields(fields.getFields());
   }

   public Band getBand()
   {
      return band;
   }


}
